window.selCheckedNum = 1;
const helper = new Helper(this);
// 搜索框
const communicationName = __artemis__tree.getSearchText();
const organizationWidgetObj = helper.get('tree_organization')?.widgetObj;


console.log('搜索条件', communicationName);
__artemis__tabs.active('org_btn');
__artemis__tree.loadOrgListData({ communicationName }).then(result => {
    if (Array.isArray(result)) {
        __artemis__tree.renderTree(result, (dataSource) => {
            console.log('搜索条件', communicationName);
            if (organizationWidgetObj) {
                organizationWidgetObj._option.dataSource = dataSource;
                organizationWidgetObj.render();
            }
        })
    }
});
